﻿using DevExpress.XtraEditors;
using DXApplicationTangche.UC.圣同润.Service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.圣同润
{
    public partial class Form达人信息一览 : DevExpress.XtraEditors.XtraForm
    {
        private List<ChanmamaAuthorInfoDTO> chanmamaAuthorInfoDTOs = new List<ChanmamaAuthorInfoDTO>();
        public Form达人信息一览()
        {
            InitializeComponent();
            this.getData();
        }

        private void getData()
        {
            this.chanmamaAuthorInfoDTOs = 达人Service.getChanmamaAuthorInfoList();
            this.gridControl达人一览.DataSource = this.chanmamaAuthorInfoDTOs;
            this.gridView达人一览.RefreshData();
        }

        private void gridView达人一览_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            try
            {
                String id = this.gridView达人一览.GetRowCellValue(this.gridView达人一览.FocusedRowHandle, "id").ToString();
                new Form达人信息详情(id).ShowDialog();
            }
            catch { }
        }
    }
}